package admin

import "enterprise-base/internal/models"

// SetupRouter 函数创建并返回一个切片
func SetupRouter() []models.RouteInfo {
	routes := []models.RouteInfo{
		{
			Handler: TestHandler,
			Method:  "GET",
			Path:    "/test",
			NoAuth:  true,
		},
		{
			Handler: TestHandler,
			Method:  "POST",
			Path:    "/test1",
		},
		{
			Handler: Add,
			Method:  "GET",
			Path:    "/test/add",
			NoAuth:  true,
		},
		{
			Handler: Update,
			Method:  "GET",
			Path:    "/test/update",
			NoAuth:  true,
		},
		{
			Handler: Get,
			Method:  "GET",
			Path:    "/test/get",
			NoAuth:  true,
		},
		{
			Handler: Select,
			Method:  "GET",
			Path:    "/test/select",
			NoAuth:  true,
		},
	}

	return routes
}
